package com.lxyk.yygh.hosp.service;

import com.lxyk.yygh.model.hosp.Department;
import com.lxyk.yygh.vo.hosp.DepartmentQueryVo;
import com.lxyk.yygh.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface DepartmentService {
    /**
     * 上传科室
     * @param paramMap
     */
    void save(Map<String,Object> paramMap);
    //查询科室
    Page<Department> findPageDepartment(int page, int limit, DepartmentQueryVo departmentQueryVo);
    //删除科室
    void remove(String hoscode, String depcode);

    //根据编号查询所有科室
    List<DepartmentVo> findDeptTree(String hoscode);

    //科室名称
    String getDepName(String hoscode,String depcode);

    /**
     * 根据科室编号,和医院编号,查询科室
     */
    Department getDepartment(String hoscode, String depcode);
}
